﻿using MyAppAPI.Models.UserInfoModel;
using MyAppAPI.Repositories.interfaceRepo;
using MyAppAPI.Services.interfaceService;

namespace MyAppAPI.Services
{
    public class UserInfoService: IUserInfoService
    {
        private readonly IUserInfoRepository userInfoRepository;
        public UserInfoService(IUserInfoRepository userInfoRepository)
        {
            this.userInfoRepository = userInfoRepository;
        }
        public UserInfoData GetAllUser(string? name, int page, int limit)
        {
            //获取list
            //获取count
            return userInfoRepository.GetAllUser(name, page, limit);
        }
    }
}
